package com.schoolvisitors.dto;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDate;

@Data
public class ReservationCubicleDto {

    @NotNull(message = "房间ID不能为空")
    Long roomId;

    @Min(value = 1, message = "隔间数量必须大于0")
    @Max(value = 100, message = "隔间数字不能大于100")
    @NotNull(message = "隔间号码不能为空")
    private Short cubicleNumber;

    @NotNull(message = "时间段ID不能为空")
    private Long timeSlotId;

    @NotNull(message = "审核人不能为空")
    private Long reviewerId;

    @NotNull(message = "预约日期不能为空")
//    @Future(message = "预约日期必须是未来的日期")
    private LocalDate date;






}
